﻿using System;
using UnityEngine;

namespace OestsCommon.Player
{
    public class Rotation4
    {
        public Double x;
        public Double y;
        public Double z;
        public Double w;

        public Rotation4()
        { }

        public Rotation4(Quaternion quaternion)
        {
            x = (Double)quaternion.x;
            y = (Double)quaternion.y;
            z = (Double)quaternion.z;
            w = (Double)quaternion.w;
        }
        public Quaternion ToQuaternin()
        {
            Quaternion q = new Quaternion((float)x, (float)y, (float)z, (float)w);
            return q;
        }
    }
}
